import axios from 'axios'

const url = '/email/contact'

export function postMessage(email, name, message) {
  return axios({
    method: 'POST',
    url,
    params: {
      email,
      name,
      message
    }
  }).then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    return Promise.reject(err)
  })
}
